package xyz.yizhifeimao.service;

import xyz.yizhifeimao.common.ServiceResponse;
import xyz.yizhifeimao.pojo.Category;

import java.util.List;

public interface ICategoryService {

    ServiceResponse addCategory(String categoryName, Integer parentId);

    ServiceResponse<String> updateCategoryName(String categoryName, Integer categoryId);

    ServiceResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);

    ServiceResponse<List<Integer>> getCategoryAndChildrenCategoryById(Integer categoryId);
}
